﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DingTalk.Core.Models
{
    /// <summary>
    /// 旧版 API 统一响应
    /// </summary>
    [JsonObject]
    public class StandardResponse
    {
        int _errorCode;
        /// <summary>
        /// 
        /// </summary>
        public StandardResponse()
        {
            _errorCode = 0;
        }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("errcode")]
        public int ErrorCode
        {
            get { return _errorCode; }
            set { _errorCode = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("errmsg")]
        public string ErrorMessage { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("request_id")]
        public string RequestId { get; set; }
    }
}
